

package com.hazelcast.jet;

import java.io.Serial;

/**
 * Thrown when a named job is submitted while there is an <em>active job</em>
 * with the same name. Job is <em>active</em> if it is running, suspended or
 * waiting to be run, until it completes or fails.
 *
 * @since Jet 3.0
 */
public class JobAlreadyExistsException extends JetException {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * Creates the exception
     */
    public JobAlreadyExistsException() {
    }

    /**
     * Creates the exception with a message.
     */
    public JobAlreadyExistsException(String message) {
        super(message);
    }

    /**
     * Creates the exception with a message and a cause.
     */
    public JobAlreadyExistsException(String message, Throwable cause) {
        super(message, cause);
    }
}
